package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TZhiweibiaoMapper;
import com.ruoyi.system.domain.TZhiweibiao;
import com.ruoyi.system.service.ITZhiweibiaoService;

/**
 * zhiweibiaoService业务层处理
 * 
 * @author SJQ
 * @date 2024-10-31
 */
@Service
public class TZhiweibiaoServiceImpl implements ITZhiweibiaoService 
{
    @Autowired
    private TZhiweibiaoMapper tZhiweibiaoMapper;

    /**
     * 查询zhiweibiao
     * 
     * @param id zhiweibiao主键
     * @return zhiweibiao
     */
    @Override
    public TZhiweibiao selectTZhiweibiaoById(Long id)
    {
        return tZhiweibiaoMapper.selectTZhiweibiaoById(id);
    }

    /**
     * 查询zhiweibiao列表
     * 
     * @param tZhiweibiao zhiweibiao
     * @return zhiweibiao
     */
    @Override
    public List<TZhiweibiao> selectTZhiweibiaoList(TZhiweibiao tZhiweibiao)
    {
        return tZhiweibiaoMapper.selectTZhiweibiaoList(tZhiweibiao);
    }

    /**
     * 新增zhiweibiao
     * 
     * @param tZhiweibiao zhiweibiao
     * @return 结果
     */
    @Override
    public int insertTZhiweibiao(TZhiweibiao tZhiweibiao)
    {
        return tZhiweibiaoMapper.insertTZhiweibiao(tZhiweibiao);
    }

    /**
     * 修改zhiweibiao
     * 
     * @param tZhiweibiao zhiweibiao
     * @return 结果
     */
    @Override
    public int updateTZhiweibiao(TZhiweibiao tZhiweibiao)
    {
        return tZhiweibiaoMapper.updateTZhiweibiao(tZhiweibiao);
    }

    /**
     * 批量删除zhiweibiao
     * 
     * @param ids 需要删除的zhiweibiao主键
     * @return 结果
     */
    @Override
    public int deleteTZhiweibiaoByIds(Long[] ids)
    {
        return tZhiweibiaoMapper.deleteTZhiweibiaoByIds(ids);
    }

    /**
     * 删除zhiweibiao信息
     * 
     * @param id zhiweibiao主键
     * @return 结果
     */
    @Override
    public int deleteTZhiweibiaoById(Long id)
    {
        return tZhiweibiaoMapper.deleteTZhiweibiaoById(id);
    }
}
